/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package PackageMaker.Config;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author wcss
 */
public class Test {

    public static void main(String[] args) {
        ProjectModel pm = new ProjectModel();
        pm.autoUpdate = false;
        pm.packageName = "fdfsfdafas";
        pm.packageDepends = new DependsModel[]{new DependsModel("jre", "1.7", 1)};
        pm.packageFiles = new FilesModel[]{new FilesModel("aaa", "aaa", 10)};
        pm.packageArchitecture = "x86";
        pm.packageMaintainer = "wcss2010@qq.com";
        
        try {
            ProjectModel.save(pm, "/home/wcss/vvv.xml");
            
            System.out.println(ProjectModel.load("/home/wcss/vvv.xml").packageName);
        } catch (Exception ex) {
            Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
